/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package task05;

/**
 *
 * @author Administrator
 */
public class Student {
    
    private String sno;
    private String name;
    private String sex;
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }
    
    
    
    public Student(){}
    public Student(String sno, String name, String sex, int age){
        this.sno = sno;
        this.name = name;
        this.sex = sex;
        this.age  = age;
        
    }
    
    public static void main(String[] args) {
        Student s = new Student("2010011111","张三","男",20);
        Student s1 = new Student();
        s1.setSno("20101111");
        s1.setName("zhanagsan");
        
    }

}

/**
 * 
 *    Stduent s = new Student("2010011111","张三","男",20);
 */